
<!DOCTYPE html>
<html>
<head>
	<meta charset="utf8"/>
	<title>登陆注册页面</title>
	<style>
		.login {
			width: 30%;
			height:210px;
			line-height: 40px;
			margin: 0 auto 30px auto;
			padding:0 20px 0 20px;
			border:red 1px solid;
		}
		.register {
			width: 30%;
			height: 250px;
			line-height: 40px;
			padding:0 20px 0 20px;
			margin: 0 auto;
			border: green 1px solid;
		}
	</style>
</head>
<body>
	
	<div class="login">
		<h2>登陆</h2>
		<form action="action.php?type=login" method="post">
			用户名: <input type="text" name="username" value=""/><br/>
			密   码: <input type="password" name="password" value=""/><br/>
			<input type="submit" name="" value="登陆"/>
		</form>

	</div>

	<div class="register">
		<h2>注册</h2>
		<form action="action.php?type=register" method="post">
			用户名: <input type="text" name="username" value=""/><br/>
			密   码: <input type="password" name="password" value=""/><br/>
			再输密: <input type="password" name="pwd_agent"/><br/>
			<input type="submit" name="" value="注册"/>
		</form>
	</div>

</body>
</html>